package com.lnj;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 产品服务启动类
 */
@SpringBootApplication
@MapperScan("com.lnj.product.mapper") // 扫描MyBatis Mapper接口
@EnableDiscoveryClient // 启用Nacos服务发现
@EnableFeignClients(basePackages= {"com.lnj.api"})
@EnableCaching
public class ProductApp {
    public static void main(String[] args) {
        SpringApplication.run(ProductApp.class, args);
    }
}
